<!--
 * @Author: AllenYe
 * @Date: 2021-04-18 09:27:43
 * @LastEditors: AllenYe
 * @LastEditTime: 2021-04-18 15:15:05
 * @Description: file content
-->
<template>
  <div id="app">
    <img alt="Vue logo" src="./assets/logo.png">
    <!-- <HelloWorld msg="Welcome to Your Vue.js App"/> -->
    <communcation ></communcation>
  </div>
</template>

<script>
// provide/inject
// 能够实现祖先和后代之间传值
// import HelloWorld from './components/HelloWorld.vue'
import communcation from '@/components/communcation/index.vue'
export default {
  provide(){
    return{
      data: 'provide传值'
    }
  },
  name: 'App',
  components: {
    communcation
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
